package com.fpx.open.platform.common.constant;

import java.util.HashMap;
import java.util.Map;

public class AEErrorConstant {
    private AEErrorConstant() {

    }

    public static final String SYS_ERROR_S01 = "S01";

    public static final String SYS_ERROR_S02 = "S02";

    public static final String SYS_ERROR_S03 = "S03";

    public static final String SYS_ERROR_S04 = "S04";

    public static final String SYS_ERROR_S05 = "S05";

    public static final String SYS_ERROR_S06 = "S06";

    public static final String SYS_ERROR_S07 = "S07";

    public static final String SYS_ERROR_S08 = "S08";

    public static final String SYS_ERROR_S09 = "S09";

    public static final String SYS_ERROR_S10 = "S10";

    public static final String SYS_ERROR_S11 = "S11";

    public static final String SYS_ERROR_S12 = "S12";

    public static final String SYS_ERROR_S13 = "S13";

    public static final String BIZ_ERROR_B00 = "B00";

    public static final String BIZ_ERROR_B01 = "B01";

    public static final String BIZ_ERROR_B02 = "B02";

    public static final String BIZ_ERROR_B03 = "B03";

    public static final String BIZ_ERROR_B04 = "B04";

    public static final String BIZ_ERROR_B98 = "B98";

    public static final Map<String, String> bizErrorMap = new HashMap<String, String>();

    public static final Map<String, String> sysErrorMap = new HashMap<String, String>();
    static {
        sysErrorMap.put(SYS_ERROR_S01, "非法的XML/JSON");
        sysErrorMap.put(SYS_ERROR_S02, "非法的数字签名");
        sysErrorMap.put(SYS_ERROR_S03, "非法的物流公司/仓储公司");
        sysErrorMap.put(SYS_ERROR_S04, "非法的通知类型");
        sysErrorMap.put(SYS_ERROR_S05, "非法的通知内空");
        sysErrorMap.put(SYS_ERROR_S06, "网络超时，请重试");
        sysErrorMap.put(SYS_ERROR_S07, "系统异常，请重试");
        sysErrorMap.put(SYS_ERROR_S08, "HTTP状态异常（非200）");
        sysErrorMap.put(SYS_ERROR_S09, "返回报文为空");
        sysErrorMap.put(SYS_ERROR_S10, "找不到对应的网关信息");
        sysErrorMap.put(SYS_ERROR_S11, "非法的网关信息");
        sysErrorMap.put(SYS_ERROR_S12, "非法的请求参数");
        sysErrorMap.put(SYS_ERROR_S13, "业务服务异常");

        bizErrorMap.put(BIZ_ERROR_B00, "未知业务错误");
        bizErrorMap.put(BIZ_ERROR_B01, "关键字段缺失");
        bizErrorMap.put(BIZ_ERROR_B02, "关键数据格式不正确");
        bizErrorMap.put(BIZ_ERROR_B03, "没有找到请求的数据");
        bizErrorMap.put(BIZ_ERROR_B04, "当前数据状态不能进行该项操作");
        bizErrorMap.put(BIZ_ERROR_B98, "数据保存失败");
    }
}
